{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "常用的字符串处理函数如下表所示:\n",
    "\n",
    "函数名称|函数功能和描述\n",
    ":-|:-\n",
    "lower()|将的字符串转换为小写。\n",
    "upper()|将的字符串转换为大写。\n",
    "len()|得出字符串的长度。\n",
    "strip()|去除字符串两边的空格（包含换行符）。\n",
    "split()|用指定的分割符分割字符串。\n",
    "cat(sep=\"\")|用给定的分隔符连接字符串元素。\n",
    "get_dummies()|返回一个带有独热编码值的 DataFrame 结构。\n",
    "contains(pattern)|如果子字符串包含在元素中，则为每个元素返回一个布尔值 True，否则为 False。\n",
    "replace(a,b)|将值 a 替换为值 b。\n",
    "count(pattern)|返回每个字符串元素出现的次数。\n",
    "startswith(pattern)|如果 Series 中的元素以指定的字符串开头，则返回 True。\n",
    "endswith(pattern)|如果 Series 中的元素以指定的字符串结尾，则返回 True。\n",
    "findall(pattern)|以列表的形式返出现的字符串。\n",
    "swapcase()|交换大小写。\n",
    "islower()|返回布尔值，检查 Series 中组成每个字符串的所有字符是否都为小写。\n",
    "issupper()|返回布尔值，检查 Series 中组成每个字符串的所有字符是否都为大写。\n",
    "isnumeric()|返回布尔值，检查 Series 中组成每个字符串的所有字符是否都为数字。\n",
    "repeat(value)|以指定的次数重复每个元素。\n",
    "find(pattern)|返回字符串第一次出现的索引位置。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
